package com._520it.crm.mapper;

import com._520it.crm.domain.Department;
import com._520it.crm.domain.Employee;
import com._520it.crm.query.DepartmentQueryObject;
import com._520it.crm.query.EmployeeQueryObject;
import com._520it.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Department record);
    Department selectByPrimaryKey(Long id);
    List<Department> selectAll();
    int updateByPrimaryKey(Department record);
    void changeState(@Param("departId") Long id, @Param("departmentState") int departmentStateQuit);

    Long queryPageCount(DepartmentQueryObject qo);

    List<Employee> queryPageData(DepartmentQueryObject qo);
}